package com.jzcn.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jzcn.common.base.BaseDomain;
import lombok.Data;

import java.util.Date;

@Data
@TableName("sys_resources")
public class SysResources extends BaseDomain {
    private String name;
    private Integer type;
    private String path;
    private String permission;
    private Integer parentId;
    private Integer sort;
    private Integer status;

    //是否显示菜单
    private Integer visible;

    private String icon;
    @TableField(fill = FieldFill.INSERT) // 新增执行
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE) // 新增和修改执行
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
